import { action, observable, makeObservable } from 'mobx'

class Store {
  //手动更新
  constructor() {
    makeObservable(this)
  }

  @observable
  click = true

  @action
  setClick = () => {
    this.click = !this.click
  }
}

export const store = new Store()
